From 769d4b190e856cc9cb5284eee941a925fded4afd Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 1 Apr 2005 20:06:16 +0000 Subject: [PATCH] Justin fixes CoastalExplorer route handling. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1122 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/coastexp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gpsbabel/coastexp.c b/gpsbabel/coastexp.c index 985208950..15b50aae3 100755 --- a/gpsbabel/coastexp.c +++ b/gpsbabel/coastexp.c @@ -139,10 +139,11 @@ ce_start(void *data, const char *el, const char **attr) // Create a CE route object and add it to the list of routes currentRoute = (ce_route *) xcalloc(sizeof (ce_route), 1); currentRoute->id=xstrdup(ap[1]); - if (doing_rtes) - currentRoute->r = route_head_alloc(); + if (doing_rtes) + currentRoute->r = route_head_alloc(); QUEUE_INIT(¤tRoute->ce_mark_head); - ce_add_route(currentRoute); + if (doing_rtes) + ce_add_route(currentRoute); } } } else if (0 == strcmp(el, "Mark")) { -- 2.30.2